<?php
class Admin extends Model
{
    public function __construct()
    {
        parent::__construct();
        //set up the db table of this model
        //$this->table = Application::getConfig('table')['sys_manager'];
        
        require __DIR__ . DIRECTORY_SEPARATOR . 'AdminComm.php';
        AdminComm::init();
    }
    

    public function check()
    {
        return AdminComm::check();
    }
    
	/**
	 * User login function.
	 */
	public function login(&$errno)
	{
	    
	}
	
	public function logout()
	{
	    AdminComm::logout();
	}

} 
